﻿var checkGridReader = new Ext.data.JsonReader(
			{
				root : 'list',
				totalProperty : 'totalCount',
				id : 'id',
				successProperty : '@success'
			}, 
			[ {
				name : 'projectcheckrecordid',
				mapping : 'projectcheckrecordid'
			}, {
				name : 'projectnumber',
				mapping : 'projectnumber'
			}, {
				name : 'projectname',
				mapping : 'projectname'
			}, {
				name : 'undertakeunit',
				mapping : 'undertakeunit'
			}, {
				name : 'checkform',
				mapping : 'checkform'
			}, {
				name : 'checkdate',
				mapping : 'checkdate'
			}, {
				name : 'checksummary',
				mapping : 'checksummary'
			}, {
				name : 'projectfinishqualitylevel',
				mapping : 'projectfinishqualitylevel'
			}, {
				name : 'datafiling',
				mapping : 'datafiling'
			}, {
				name : 'filingdate',
				mapping : 'filingdate'
			}, {
				name : 'filingdirectory',
				mapping : 'filingdirectory'
			}, {
				name : 'sparefield1',
				mapping : 'sparefield1'
			}, {
				name : 'sparefield2',
				mapping : 'sparefield2'
			}, {
				name : 'sparefield3',
				mapping : 'sparefield3'
			}]);

var CheckGridStore = function(){
	CheckGridStore.superclass.constructor.call(this, {
	        proxy: new Ext.data.HttpProxy({
	            url: 'projectManage/checkManageAction!getAllCheck'
	        }),

	        reader : checkGridReader,
			pageSize : 20
	    });

};
Ext.extend(CheckGridStore, Ext.data.Store);


